package com.cloud.control.service.socket.entity;

import java.io.Serializable;

/*
 * 为每个单独的session保存待拼接的消息
 */
public class SessionMessage implements Serializable {

	private static final long serialVersionUID = -840055864448058299L;
	private long updateTime=0;
	private StringBuffer message=new StringBuffer();
	private String       msgKey;
	
	public long getUpdateTime() {
		return updateTime;
	}
	public StringBuffer getMessage() {
		return message;
	}
	public String getMsgKey() {
		return msgKey;
	}
	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}
	public void setMessage(StringBuffer message) {
		this.message = message;
	}
	public void setMsgKey(String msgKey) {
		this.msgKey = msgKey;
	}
	public void appendMessage(String message){
		this.message.append(message);
	}
	
	public void cleanMessageBuffer(){
		this.message=new StringBuffer();
	}
}
